import { ApiProperty } from '@nestjs/swagger';

export class CreateCategoryDto {
  @ApiProperty({ description: '分类名称' })
  name: string;

  @ApiProperty({ description: '分类图标', required: false })
  icon?: string;

  @ApiProperty({ description: '分类描述', required: false })
  description?: string;
}

export class CategoryResponseDto {
  @ApiProperty({ description: '分类ID' })
  id: number;

  @ApiProperty({ description: '分类名称' })
  name: string;

  @ApiProperty({ description: '分类图标', required: false })
  icon?: string;

  @ApiProperty({ description: '分类描述', required: false })
  description?: string;
} 